package org.huangrui.design.pattern.decorate;

public class Pearl extends Ingredients{//珍珠配料
    public Pearl(Product product) {
        super(product);
    }

    @Override
    public double totalPrice() {
        return super.totalPrice() + 2;
    }

    @Override
    public String showMaterials() {
        return super.showMaterials() + "，黑珍珠";
    }
}
